import http from './axios'

// 登录
const login=(obj)=>{
    let data = http.post("/login",obj);
    return data
}
// 添加
const add=(obj)=>{
    let data = http.post("/postStudentInfo",obj);
    return data
}
const getquanzhanlist=(obj)=>{
    let data = http.get("/getStudentInfo",{params:obj});
    return data
}

const byst=(obj)=>{
    let data = http.put(`/putStudentInfo/${obj._id}`);
    return data
}

const del = (obj) => {
  let data = http.delete(`/delStudentInfo/${obj._id}`);
  return data;
};

export { login, add, getquanzhanlist,byst ,del};